package com.tbit.uqbike.object.pojo.statistics;

import com.tbit.uqbike.object.pojo.MoneyData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * ordercumsta
 *
 * @author
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class OrderCumSta implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 区域Id
     */
    private Integer accountId;
    /**
     * 分区id
     */
    private Integer regionId;
    /**
     * 订单类型
     */
    private Integer orderType;
    /**
     * 订单总数
     */
    private Integer orderCount;
    /**
     * 订单总金额
     */
    private Integer orderMoney;
    /**
     * 最后更新时间
     */
    private Date updateTime;

    public OrderCumSta(MoneyData moneyData, Integer type) {
        this.accountId = moneyData.getAccountId();
        this.orderCount = moneyData.getNum();
        this.orderMoney = moneyData.getMoney();
        this.orderType = type;
        this.regionId = moneyData.getRegionId();

    }
}
